x11: Handle obsolete selection requests without crashing
authorMatthias Clasen <mclasen@redhat.com>
Sun, 25 Jan 2015 00:31:11 +0000 (19:31 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 25 Jan 2015 00:32:52 +0000 (19:32 -0500)
commit5fc8cf43317b1eef865fddefd69093b30a544976
treebf5283540a3272192647873412564034e903839a
parent542c824c717b3d3f04a982dd11faf85de1ba3828
x11: Handle obsolete selection requests without crashing

The ICCCM says:

If the specified property is None, the requestor is an obsolete client.
Owners are encouraged to support these clients by using the specified
target atom as the property name to be used for the reply.

Lets do that, instead of crashing.

https://bugzilla.gnome.org/show_bug.cgi?id=740613

The previous fix for this issue in 732af31424b8f382d was incomplete.
gdk/x11/gdkdisplay-x11.c